//
//  NSObject+UIUtil.h
//  DigitalGeek
//
//  Created by lienbao on 10/09/2014.
//  Copyright (c) 2014 com.lienbao.digitalgeek. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

@interface Utility : NSObject

+ (CLLocationDistance)distanceFrom:(CLLocationCoordinate2D)coordinate1 toCoordinate:(CLLocationCoordinate2D)coordinate2;

+ (BOOL)isValidCoordinate:(CLLocationCoordinate2D)coordinate;

+ (BOOL)isValidateEmail:(NSString *)email;

+ (BOOL)isValidateMobile:(NSString *)mobile;

+ (CLLocationCoordinate2D)googleToBaiduCoordinate:(CLLocationCoordinate2D)coordinate;

+ (CLLocationCoordinate2D)baiduToGoogleCoordinate:(CLLocationCoordinate2D)coordinate;

@end
